SRC=${wildcard *.c}
BIN=${patsubst %.c, %, $(SRC)}
CFLAGS= -g -Wall
CC= gcc
LIB= -pthread

all:$(BIN)

$(BIN):%:%.c
	$(CC) -o $@ $^ $(CFLAGS) $(LIB)

clean:
	$(RM) a.out $(BIN)

.PHNOY:all clean
